package com.seraph.zys.dao.impl;

import com.seraph.bi.suite.support.domain.pagination.PageBox;
import com.seraph.bi.suite.support.domain.pagination.PageObject;
import com.seraph.zys.dao.PrAcMeetingParentDAO;
import com.seraph.zys.dao.domain.PrAcMeetingParent;
import com.seraph.zys.dao.domain.PrAcMeetingParentExample;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

@Repository
public class PrAcMeetingParentDAOImpl extends SqlMapClientDaoSupport implements PrAcMeetingParentDAO {

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public PrAcMeetingParentDAOImpl() {
        super();
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public Integer insert(PrAcMeetingParent record) {
        Object newKey = getSqlMapClientTemplate().insert("pr_ac_meeting_parent.abatorgenerated_insert", record);
        return (Integer) newKey;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int updateByPrimaryKey(PrAcMeetingParent record) {
        int rows = getSqlMapClientTemplate().update("pr_ac_meeting_parent.abatorgenerated_updateByPrimaryKey", record);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int updateByPrimaryKeySelective(PrAcMeetingParent record) {
        int rows = getSqlMapClientTemplate().update("pr_ac_meeting_parent.abatorgenerated_updateByPrimaryKeySelective", record);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public List selectByExample(PrAcMeetingParentExample example, String orderByClause) {
        Map parms = getExampleParms(example);
        if (orderByClause != null) {
            parms.put("ABATOR_ORDER_BY_CLAUSE", orderByClause);
        }
        List list = getSqlMapClientTemplate().queryForList("pr_ac_meeting_parent.abatorgenerated_selectByExample", parms);
        return list;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public List selectByExample(PrAcMeetingParentExample example) {
        return selectByExample(example, null);
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public PrAcMeetingParent selectByPrimaryKey(Integer id) {
        PrAcMeetingParent key = new PrAcMeetingParent();
        key.setId(id);
        PrAcMeetingParent record = (PrAcMeetingParent) getSqlMapClientTemplate().queryForObject("pr_ac_meeting_parent.abatorgenerated_selectByPrimaryKey", key);
        return record;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int deleteByExample(PrAcMeetingParentExample example) {
        int rows = getSqlMapClientTemplate().delete("pr_ac_meeting_parent.abatorgenerated_deleteByExample", getExampleParms(example));
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int deleteByPrimaryKey(Integer id) {
        PrAcMeetingParent key = new PrAcMeetingParent();
        key.setId(id);
        int rows = getSqlMapClientTemplate().delete("pr_ac_meeting_parent.abatorgenerated_deleteByPrimaryKey", key);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getIDExampleParms(PrAcMeetingParentExample example) {
        Map parms = new HashMap();
        switch (example.getId_Indicator()) {
        case PrAcMeetingParentExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NULL", "Y");
            } else {
                parms.put("AND_ID_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NOT_NULL", "Y");
            } else {
                parms.put("AND_ID_NOT_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_EQUALS", "Y");
            } else {
                parms.put("AND_ID_EQUALS", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_ID_NOT_EQUALS", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_GT", "Y");
            } else {
                parms.put("AND_ID_GT", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_GE", "Y");
            } else {
                parms.put("AND_ID_GE", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_LT", "Y");
            } else {
                parms.put("AND_ID_LT", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_LE", "Y");
            } else {
                parms.put("AND_ID_LE", "Y");
            }
            parms.put("id", example.getId());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getFISCAL_YEARExampleParms(PrAcMeetingParentExample example) {
        Map parms = new HashMap();
        switch (example.getFiscalYear_Indicator()) {
        case PrAcMeetingParentExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NULL", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NOT_NULL", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NOT_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_EQUALS", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_EQUALS", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NOT_EQUALS", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_GT", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_GT", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_GE", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_GE", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_LT", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_LT", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_LE", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_LE", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getFROM_AREAExampleParms(PrAcMeetingParentExample example) {
        Map parms = new HashMap();
        switch (example.getFromArea_Indicator()) {
        case PrAcMeetingParentExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NULL", "Y");
            } else {
                parms.put("AND_FROM_AREA_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NOT_NULL", "Y");
            } else {
                parms.put("AND_FROM_AREA_NOT_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_EQUALS", "Y");
            } else {
                parms.put("AND_FROM_AREA_EQUALS", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_FROM_AREA_NOT_EQUALS", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_GT", "Y");
            } else {
                parms.put("AND_FROM_AREA_GT", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_GE", "Y");
            } else {
                parms.put("AND_FROM_AREA_GE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LT", "Y");
            } else {
                parms.put("AND_FROM_AREA_LT", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LE", "Y");
            } else {
                parms.put("AND_FROM_AREA_LE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LIKE:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LIKE", "Y");
            } else {
                parms.put("AND_FROM_AREA_LIKE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getSORT_IDExampleParms(PrAcMeetingParentExample example) {
        Map parms = new HashMap();
        switch (example.getSortId_Indicator()) {
        case PrAcMeetingParentExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NULL", "Y");
            } else {
                parms.put("AND_SORT_ID_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NOT_NULL", "Y");
            } else {
                parms.put("AND_SORT_ID_NOT_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_EQUALS", "Y");
            } else {
                parms.put("AND_SORT_ID_EQUALS", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_SORT_ID_NOT_EQUALS", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_GT", "Y");
            } else {
                parms.put("AND_SORT_ID_GT", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_GE", "Y");
            } else {
                parms.put("AND_SORT_ID_GE", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_LT", "Y");
            } else {
                parms.put("AND_SORT_ID_LT", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_LE", "Y");
            } else {
                parms.put("AND_SORT_ID_LE", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getActivity_TimeExampleParms(PrAcMeetingParentExample example) {
        Map parms = new HashMap();
        switch (example.getActivityTime_Indicator()) {
        case PrAcMeetingParentExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Time_NULL", "Y");
            } else {
                parms.put("AND_Activity_Time_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Time_NOT_NULL", "Y");
            } else {
                parms.put("AND_Activity_Time_NOT_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Time_EQUALS", "Y");
            } else {
                parms.put("AND_Activity_Time_EQUALS", "Y");
            }
            parms.put("activityTime", example.getActivityTime());
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Time_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_Activity_Time_NOT_EQUALS", "Y");
            }
            parms.put("activityTime", example.getActivityTime());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Time_GT", "Y");
            } else {
                parms.put("AND_Activity_Time_GT", "Y");
            }
            parms.put("activityTime", example.getActivityTime());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Time_GE", "Y");
            } else {
                parms.put("AND_Activity_Time_GE", "Y");
            }
            parms.put("activityTime", example.getActivityTime());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Time_LT", "Y");
            } else {
                parms.put("AND_Activity_Time_LT", "Y");
            }
            parms.put("activityTime", example.getActivityTime());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Time_LE", "Y");
            } else {
                parms.put("AND_Activity_Time_LE", "Y");
            }
            parms.put("activityTime", example.getActivityTime());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getActivity_ContentExampleParms(PrAcMeetingParentExample example) {
        Map parms = new HashMap();
        switch (example.getActivityContent_Indicator()) {
        case PrAcMeetingParentExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Content_NULL", "Y");
            } else {
                parms.put("AND_Activity_Content_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Content_NOT_NULL", "Y");
            } else {
                parms.put("AND_Activity_Content_NOT_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Content_EQUALS", "Y");
            } else {
                parms.put("AND_Activity_Content_EQUALS", "Y");
            }
            parms.put("activityContent", example.getActivityContent());
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Content_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_Activity_Content_NOT_EQUALS", "Y");
            }
            parms.put("activityContent", example.getActivityContent());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Content_GT", "Y");
            } else {
                parms.put("AND_Activity_Content_GT", "Y");
            }
            parms.put("activityContent", example.getActivityContent());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Content_GE", "Y");
            } else {
                parms.put("AND_Activity_Content_GE", "Y");
            }
            parms.put("activityContent", example.getActivityContent());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Content_LT", "Y");
            } else {
                parms.put("AND_Activity_Content_LT", "Y");
            }
            parms.put("activityContent", example.getActivityContent());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Content_LE", "Y");
            } else {
                parms.put("AND_Activity_Content_LE", "Y");
            }
            parms.put("activityContent", example.getActivityContent());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LIKE:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Activity_Content_LIKE", "Y");
            } else {
                parms.put("AND_Activity_Content_LIKE", "Y");
            }
            parms.put("activityContent", example.getActivityContent());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getSupporters_nameExampleParms(PrAcMeetingParentExample example) {
        Map parms = new HashMap();
        switch (example.getSupportersName_Indicator()) {
        case PrAcMeetingParentExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Supporters_name_NULL", "Y");
            } else {
                parms.put("AND_Supporters_name_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Supporters_name_NOT_NULL", "Y");
            } else {
                parms.put("AND_Supporters_name_NOT_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Supporters_name_EQUALS", "Y");
            } else {
                parms.put("AND_Supporters_name_EQUALS", "Y");
            }
            parms.put("supportersName", example.getSupportersName());
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Supporters_name_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_Supporters_name_NOT_EQUALS", "Y");
            }
            parms.put("supportersName", example.getSupportersName());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Supporters_name_GT", "Y");
            } else {
                parms.put("AND_Supporters_name_GT", "Y");
            }
            parms.put("supportersName", example.getSupportersName());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Supporters_name_GE", "Y");
            } else {
                parms.put("AND_Supporters_name_GE", "Y");
            }
            parms.put("supportersName", example.getSupportersName());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Supporters_name_LT", "Y");
            } else {
                parms.put("AND_Supporters_name_LT", "Y");
            }
            parms.put("supportersName", example.getSupportersName());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Supporters_name_LE", "Y");
            } else {
                parms.put("AND_Supporters_name_LE", "Y");
            }
            parms.put("supportersName", example.getSupportersName());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LIKE:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Supporters_name_LIKE", "Y");
            } else {
                parms.put("AND_Supporters_name_LIKE", "Y");
            }
            parms.put("supportersName", example.getSupportersName());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getsupp_levelExampleParms(PrAcMeetingParentExample example) {
        Map parms = new HashMap();
        switch (example.getSuppLevel_Indicator()) {
        case PrAcMeetingParentExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_supp_level_NULL", "Y");
            } else {
                parms.put("AND_supp_level_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_supp_level_NOT_NULL", "Y");
            } else {
                parms.put("AND_supp_level_NOT_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_supp_level_EQUALS", "Y");
            } else {
                parms.put("AND_supp_level_EQUALS", "Y");
            }
            parms.put("suppLevel", example.getSuppLevel());
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_supp_level_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_supp_level_NOT_EQUALS", "Y");
            }
            parms.put("suppLevel", example.getSuppLevel());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_supp_level_GT", "Y");
            } else {
                parms.put("AND_supp_level_GT", "Y");
            }
            parms.put("suppLevel", example.getSuppLevel());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_supp_level_GE", "Y");
            } else {
                parms.put("AND_supp_level_GE", "Y");
            }
            parms.put("suppLevel", example.getSuppLevel());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_supp_level_LT", "Y");
            } else {
                parms.put("AND_supp_level_LT", "Y");
            }
            parms.put("suppLevel", example.getSuppLevel());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_supp_level_LE", "Y");
            } else {
                parms.put("AND_supp_level_LE", "Y");
            }
            parms.put("suppLevel", example.getSuppLevel());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getdays_numExampleParms(PrAcMeetingParentExample example) {
        Map parms = new HashMap();
        switch (example.getDaysNum_Indicator()) {
        case PrAcMeetingParentExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_days_num_NULL", "Y");
            } else {
                parms.put("AND_days_num_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_days_num_NOT_NULL", "Y");
            } else {
                parms.put("AND_days_num_NOT_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_days_num_EQUALS", "Y");
            } else {
                parms.put("AND_days_num_EQUALS", "Y");
            }
            parms.put("daysNum", example.getDaysNum());
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_days_num_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_days_num_NOT_EQUALS", "Y");
            }
            parms.put("daysNum", example.getDaysNum());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_days_num_GT", "Y");
            } else {
                parms.put("AND_days_num_GT", "Y");
            }
            parms.put("daysNum", example.getDaysNum());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_days_num_GE", "Y");
            } else {
                parms.put("AND_days_num_GE", "Y");
            }
            parms.put("daysNum", example.getDaysNum());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_days_num_LT", "Y");
            } else {
                parms.put("AND_days_num_LT", "Y");
            }
            parms.put("daysNum", example.getDaysNum());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_days_num_LE", "Y");
            } else {
                parms.put("AND_days_num_LE", "Y");
            }
            parms.put("daysNum", example.getDaysNum());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getpeople_numExampleParms(PrAcMeetingParentExample example) {
        Map parms = new HashMap();
        switch (example.getPeopleNum_Indicator()) {
        case PrAcMeetingParentExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_people_num_NULL", "Y");
            } else {
                parms.put("AND_people_num_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_people_num_NOT_NULL", "Y");
            } else {
                parms.put("AND_people_num_NOT_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_people_num_EQUALS", "Y");
            } else {
                parms.put("AND_people_num_EQUALS", "Y");
            }
            parms.put("peopleNum", example.getPeopleNum());
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_people_num_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_people_num_NOT_EQUALS", "Y");
            }
            parms.put("peopleNum", example.getPeopleNum());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_people_num_GT", "Y");
            } else {
                parms.put("AND_people_num_GT", "Y");
            }
            parms.put("peopleNum", example.getPeopleNum());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_people_num_GE", "Y");
            } else {
                parms.put("AND_people_num_GE", "Y");
            }
            parms.put("peopleNum", example.getPeopleNum());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_people_num_LT", "Y");
            } else {
                parms.put("AND_people_num_LT", "Y");
            }
            parms.put("peopleNum", example.getPeopleNum());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_people_num_LE", "Y");
            } else {
                parms.put("AND_people_num_LE", "Y");
            }
            parms.put("peopleNum", example.getPeopleNum());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getFunding_requireExampleParms(PrAcMeetingParentExample example) {
        Map parms = new HashMap();
        switch (example.getFundingRequire_Indicator()) {
        case PrAcMeetingParentExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Funding_require_NULL", "Y");
            } else {
                parms.put("AND_Funding_require_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Funding_require_NOT_NULL", "Y");
            } else {
                parms.put("AND_Funding_require_NOT_NULL", "Y");
            }
            break;
        case PrAcMeetingParentExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Funding_require_EQUALS", "Y");
            } else {
                parms.put("AND_Funding_require_EQUALS", "Y");
            }
            parms.put("fundingRequire", example.getFundingRequire());
            break;
        case PrAcMeetingParentExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Funding_require_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_Funding_require_NOT_EQUALS", "Y");
            }
            parms.put("fundingRequire", example.getFundingRequire());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Funding_require_GT", "Y");
            } else {
                parms.put("AND_Funding_require_GT", "Y");
            }
            parms.put("fundingRequire", example.getFundingRequire());
            break;
        case PrAcMeetingParentExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Funding_require_GE", "Y");
            } else {
                parms.put("AND_Funding_require_GE", "Y");
            }
            parms.put("fundingRequire", example.getFundingRequire());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Funding_require_LT", "Y");
            } else {
                parms.put("AND_Funding_require_LT", "Y");
            }
            parms.put("fundingRequire", example.getFundingRequire());
            break;
        case PrAcMeetingParentExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Funding_require_LE", "Y");
            } else {
                parms.put("AND_Funding_require_LE", "Y");
            }
            parms.put("fundingRequire", example.getFundingRequire());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getExampleParms(PrAcMeetingParentExample example) {
        Map parms = new HashMap();
        parms.putAll(getIDExampleParms(example));
        parms.putAll(getFISCAL_YEARExampleParms(example));
        parms.putAll(getFROM_AREAExampleParms(example));
        parms.putAll(getSORT_IDExampleParms(example));
        parms.putAll(getActivity_TimeExampleParms(example));
        parms.putAll(getActivity_ContentExampleParms(example));
        parms.putAll(getSupporters_nameExampleParms(example));
        parms.putAll(getsupp_levelExampleParms(example));
        parms.putAll(getdays_numExampleParms(example));
        parms.putAll(getpeople_numExampleParms(example));
        parms.putAll(getFunding_requireExampleParms(example));
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int selectCountByExample(PrAcMeetingParentExample example) {
        Map parms = getExampleParms(example);
        int count = ((Integer)getSqlMapClientTemplate().queryForObject("pr_ac_meeting_parent.abatorgenerated_selectCountByExample", parms)).intValue();
        return count;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public PageBox selectByExampleWithPaging(PrAcMeetingParentExample example, int pageSize, int pageNum, String orderByClause) {
        Map parms = getExampleParms(example);
        if (orderByClause != null) {
            parms.put("ABATOR_ORDER_BY_CLAUSE", orderByClause);
        }
        PageBox pageBox = new PageBox();
        PageObject pageObject = new PageObject();
        pageObject.setPageSize(pageSize);
        pageObject.setPageIndex(pageNum);
        int itemAmount = selectCountByExample(example);
        pageObject.setItemAmount(itemAmount);
        List pageList = null;
        if (pageObject.getBeginIndex() <= pageObject.getItemAmount()) {
            pageList = (getSqlMapClientTemplate().queryForList("pr_ac_meeting_parent.abatorgenerated_selectByExample", parms, pageObject.getBeginIndex() - 1, pageSize));
        }
        pageBox.setPageObject(pageObject);
        pageBox.setPageList(pageList);
        return pageBox;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public PageBox selectByExampleWithPaging(PrAcMeetingParentExample example, int pageSize, int pageNum) {
        return selectByExampleWithPaging(example, pageSize, pageNum, null);
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pr_ac_meeting_parent
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int updateByPrimaryKeyForCgs(PrAcMeetingParent record) {
        int rows = getSqlMapClientTemplate().update("pr_ac_meeting_parent.abatorgenerated_updateByPrimaryKeyForCgs", record);
        return rows;
    }
}